package com.doge.mapper;

import com.doge.bean.pojo.aftersale.AfterSale;
import com.doge.bean.pojo.aftersale.AfterSaleExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AfterSaleMapper {
    long countByExample(AfterSaleExample example);

    int deleteByExample(AfterSaleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AfterSale record);

    int insertSelective(AfterSale record);

    List<AfterSale> selectByExample(AfterSaleExample example);

    AfterSale selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AfterSale record, @Param("example") AfterSaleExample example);

    int updateByExample(@Param("record") AfterSale record, @Param("example") AfterSaleExample example);

    int updateByPrimaryKeySelective(AfterSale record);

    int updateByPrimaryKey(AfterSale record);

    int updateById(@Param("id") Integer id, @Param("status") Short status);

    AfterSale selectsAftersaleByUserIdAndOrderId(@Param("order") Integer order);
}